import 'package:flutter/material.dart';

class Evaluate extends StatefulWidget {
  @override
  State<Evaluate> createState() => _EvaluateState();
}

class _EvaluateState extends State<Evaluate> {
  TextEditingController _text = TextEditingController();

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('评价提交'),
        elevation: 0,
      ),
      body: Container(
        width: MediaQuery.of(context).size.width,
        height: MediaQuery.of(context).size.height,
        color: Colors.white,
        padding: EdgeInsets.only(top: 15),
        child: Column(
          crossAxisAlignment: CrossAxisAlignment.start,
          children: [
            Row(
              children: [
                Container(
                  margin: EdgeInsets.only(left: 15),
                  child: Image.asset('images/home/good.png'),
                  width: 35,
                  height: 35,
                ),
                Container(
                  margin: EdgeInsets.only(left: 8),
                  child: Text('Do－win/多威定制款战神'),
                )
              ],
            ),
            Container(
              child: Divider(
                color: Color.fromRGBO(255, 255, 255, 1),
              ),
              margin: EdgeInsets.only(top: 8, bottom: 12),
            ),
            Container(
              padding: EdgeInsets.only(left: 15, right: 15),
              child: TextField(
                controller: _text,
                minLines: 5,
                maxLines: 5,
                decoration: InputDecoration(
                    border: InputBorder.none,
                    hintText: '已经用了一段时间了，有更多宝贝使用心得？分型给想买 的他们吧',
                    hintStyle:
                        TextStyle(color: Color.fromRGBO(193, 193, 193, 1))),
              ),
            ),
            Container(
              width: 81,
              height: 81,
              margin: EdgeInsets.only(bottom: 15, left: 15),
              color: Color.fromRGBO(249, 249, 249, 1),
              child: Icon(
                Icons.add,
              ),
            ),
            Container(
              color: Color.fromRGBO(249, 249, 249, 1),
              width: MediaQuery.of(context).size.width,
              height: 5,
            )
          ],
        ),
      ),
    );
  }
}
